const mysqlPool = require("../config/mysqlPool");
module.exports = {
  selectAll(arr, callback) {
    mysqlPool.connect(
      "select s_name,s_age,s_sex,s_id,s_date from t_student",
      arr,
      function (err, data) {
        callback(err, data);
      }
    );
  },
  deleteStud(arr, callback) {
    mysqlPool.connect("delete from t_student where s_id = ?", arr, function (
      err,
      data
    ) {
      callback(err, data);
    });
  },
};
